package cn.changein.framework.modular.tenant.context;

/**
 * 租户数据库名称的临时存放
 * 

 * @date: 2020-02-17
 * @copyright: 广州澄境科技有限公司
 */
public class DataBaseNameHolder {

    private static ThreadLocal<String> threadLocal = new ThreadLocal<>();

    public static void put(String value) {
        threadLocal.set(value);
    }

    public static String get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
